<?php

use App\Http\Controllers\MenuController;
use App\Http\Controllers\System\AuthController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

Route::get('/user', function (Request $request) {
    return $request->user();
})->middleware('auth:sanctum');

Route::controller(AuthController::class)->prefix('auth')->group(function () {
    Route::post('login', 'login');
    Route::post('logout', 'logout');
    Route::post('register', 'register');
    Route::post('password', 'password');
});


// Route::apiResource('user', UserController::class);
// Route::apiResource('role', RoleController::class);
// Route::apiResource('permission', PermissionController::class);
Route::apiResource('menu', MenuController::class);
